package org.tote.exception;


/**
 * Exception thrown when entity with specified ID was not found in database
 */
public class ElementNotFoundException extends RuntimeException {

	private static final long serialVersionUID = -4126481654020074936L;

	public ElementNotFoundException(@SuppressWarnings("rawtypes") Class clazz, String id) {
		super("Entity " + clazz.getSimpleName() + " with ID=" + id + " was not found!");
	}
	
	public ElementNotFoundException(String message) {
		super(message);
	}
	
	public ElementNotFoundException() {
		super();
	}
	
}
